<template>
	<view class="demand">
		<view class="demand-plate-1">
			<image :src="head_bg" mode=""></image>
			<view class="content">
				<text>鉴定团队已经出具鉴定证书</text>
				<view class="num">
					<text>3067</text>
					<text>张</text>
				</view>
			</view>
		</view>
		<view class="demand-plate-2">
			<view class="input-txt">
				<input type="number" v-model="authen_num" placeholder="输入需要查询的证书编号" placeholder-class="plaClass" />
			</view>
			<text>注：目前仅支持查询翡翠有品所出品的鉴定证书</text>
			<button class="bg-btn" @click="onDemand">立即查询</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				authen_num:'',//证书编号
				head_bg:this.$Url + '/public/upload/au_pic/20201222134657.png'
			};
		},
		methods:{
			//查询
			onDemand(){
				uni.request({
				    url:this.$Url +'/index.php/app/Authentication/fetchAuthenReport',
				    method:'POST',
				    data:{
				       authen_num:this.authen_num
				    },
				    header:{
				        "token":uni.getStorageSync('token')
				    },
				    success: (res) => {
						if (res.data.status == 200) {
							uni.navigateTo({
								url:'../report/report'
							})
						} else{
							uni.showToast({
							    title:res.data.msg,
							    icon:'none',
							    duration:1200
							})
						}
				    }
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.demand{
	width: 100vw;
	min-height: 100vh;
	background-color: #fff;
	.demand-plate-1{
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 750upx;
		height: 350upx;
		image{
			width: 750upx;
			height: 350upx;
		}
		.content{
			width: 750upx;
			height: 350upx;
			position: absolute;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			z-index: 100;
			top: 0;
			left: 0;
			>text{
				font-size: 35upx;
				color: #fff;
			}
			.num{
				text:first-child{
					color: $zhuti-color;
					font-size: 60upx;
					font-weight: 600;
				}
				text:last-child{
					font-size: 56upx;
					color: #fff;
				}
			}
		}
	}
	.demand-plate-2{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding-top: 60upx;
		border-top-left-radius: 30upx;
		border-top-right-radius: 30upx;
		background-color: #fff;
		.input-txt{
			width: 620upx;
			height: 83upx;
			border: 1px solid #5e5e5e;
			border-radius: 40upx;
			display: flex;
			align-items: center;
			input{
				margin-left: 44upx;
				font-size: 26upx;
				color: #333;
				width: 400upx;
			}
			.plaClass{
				font-size: 26upx;
				color: #999999;
			}
		}
		>text{
			font-size: #d5d5d5;
			font-size: 24upx;
			margin-top: 14upx;
		}
		button{
			margin-top: 50upx;
			width: 620upx;
			height: 83upx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 32upx;
			font-weight: 500;
		}
	}
}
</style>
